<!doctype html>
<html>

<head>
    <link href="../css/mzui.min.css" rel="stylesheet">
</head>

<body>
</body>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript">
    apiready = function() {
        //打开摄像头frame
        api.openFrame({
            name: 'scanFrame',
            url: 'scanFrame.html',
            pageParam: {
                winName: 'addGoodsWin'
            }
        });
    };
    apiready();


    function scanResultTodo(goodCode) {
        api.closeFrame({
            name: 'scanFrame'
        });
        //打开结算列表frame
        api.openFrame({
            name: 'addGoodsFrame',
            url: 'addGoodsFrame.html',
            bgColor: 'rgba(0,0,0,0)',
            pageParam: {
                goodCode: goodCode
            }
        });
    }
</script>

</html>